import request from "../../config/request"

export const loadAdminCourse = function(params={}){
    return request({
        url:'/api/v1/admin/course',
        method:"get",
        params:params
    })
}

export const removeAdminCourse=function(course_id=''){
    return request({
        url:'/api/v1/admin/course',
        method:'delete',
        params:{
            course_id:course_id
        }
    })
}

export const insertNewCourse = function (data = {}) {
    return request({
      url: '/api/v1/admin/course',
      method: 'post',
      data,
    })
  }
  
  export const updateCourseByCid = function (data = {}) {
    return request({
      url: '/api/v1/admin/course',
      method: 'put',
      data,
    })
  }